<?php
$buildRoot = "build";
$phar = new Phar($buildRoot . "/phpfun.phar", FilesystemIterator::CURRENT_AS_FILEINFO | FilesystemIterator::KEY_AS_FILENAME, "phpfun.phar");
$phar->buildfromDirectory(__DIR__.'/src/');
$phar->setStub($phar->createDefaultStub("index.php"));
echo "ok";